Optimal. Leaf size=265 \[ \frac {3 b^2 g n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}+\frac {6 a b^2 n^2 x (e f-d g)}{e}-\frac {3 b n (d+e x) (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}+\frac {(d+e x) (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}-\frac {3 b g n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac {g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac {6 b^3 n^2 (d+e x) (e f-d g) \log \left (c (d+e x)^n\right )}{e^2}-\frac {3 b^3 g n^3 (d+e x)^2}{8 e^2}-\frac {6 b^3 n^3 x (e f-d g)}{e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.22, antiderivative size = 265, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 7, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.318, Rules used = {2401, 2389, 2296, 2295, 2390, 2305, 2304} \[ \frac {3 b^2 g n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}+\frac {6 a b^2 n^2 x (e f-d g)}{e}-\frac {3 b n (d+e x) (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}+\frac {(d+e x) (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}-\frac {3 b g n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac {g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac {6 b^3 n^2 (d+e x) (e f-d g) \log \left (c (d+e x)^n\right )}{e^2}-\frac {3 b^3 g n^3 (d+e x)^2}{8 e^2}-\frac {6 b^3 n^3 x (e f-d g)}{e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2295
Rule 2296
Rule 2304
Rule 2305
Rule 2389
Rule 2390
Rule 2401
Rubi steps
\begin {align*} \int (f+g x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx &=\int \left (\frac {(e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e}+\frac {g (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e}\right ) \, dx\\ &=\frac {g \int (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx}{e}+\frac {(e f-d g) \int \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx}{e}\\ &=\frac {g \operatorname {Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^3 \, dx,x,d+e x\right )}{e^2}+\frac {(e f-d g) \operatorname {Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^3 \, dx,x,d+e x\right )}{e^2}\\ &=\frac {(e f-d g) (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}+\frac {g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}-\frac {(3 b g n) \operatorname {Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{2 e^2}-\frac {(3 b (e f-d g) n) \operatorname {Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e x\right )}{e^2}\\ &=-\frac {3 b (e f-d g) n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac {3 b g n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac {(e f-d g) (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}+\frac {g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac {\left (3 b^2 g n^2\right ) \operatorname {Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{2 e^2}+\frac {\left (6 b^2 (e f-d g) n^2\right ) \operatorname {Subst}\left (\int \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e x\right )}{e^2}\\ &=\frac {6 a b^2 (e f-d g) n^2 x}{e}-\frac {3 b^3 g n^3 (d+e x)^2}{8 e^2}+\frac {3 b^2 g n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}-\frac {3 b (e f-d g) n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac {3 b g n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac {(e f-d g) (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}+\frac {g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}+\frac {\left (6 b^3 (e f-d g) n^2\right ) \operatorname {Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e^2}\\ &=\frac {6 a b^2 (e f-d g) n^2 x}{e}-\frac {6 b^3 (e f-d g) n^3 x}{e}-\frac {3 b^3 g n^3 (d+e x)^2}{8 e^2}+\frac {6 b^3 (e f-d g) n^2 (d+e x) \log \left (c (d+e x)^n\right )}{e^2}+\frac {3 b^2 g n^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{4 e^2}-\frac {3 b (e f-d g) n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e^2}-\frac {3 b g n (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{4 e^2}+\frac {(e f-d g) (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e^2}+\frac {g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{2 e^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.14, size = 201, normalized size = 0.76 \[ \frac {8 (d+e x) (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^3-24 b n (e f-d g) \left ((d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2-2 b n \left (e x (a-b n)+b (d+e x) \log \left (c (d+e x)^n\right )\right )\right )+4 g (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^3-3 b g n \left (2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2+b n \left (b e n x (2 d+e x)-2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )\right )\right )}{8 e^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.51, size = 923, normalized size = 3.48 \[ \frac {4 \, {\left (b^{3} e^{2} g n^{3} x^{2} + 2 \, b^{3} e^{2} f n^{3} x + {\left (2 \, b^{3} d e f - b^{3} d^{2} g\right )} n^{3}\right )} \log \left (e x + d\right )^{3} + 4 \, {\left (b^{3} e^{2} g x^{2} + 2 \, b^{3} e^{2} f x\right )} \log \relax (c)^{3} - {\left (3 \, b^{3} e^{2} g n^{3} - 6 \, a b^{2} e^{2} g n^{2} + 6 \, a^{2} b e^{2} g n - 4 \, a^{3} e^{2} g\right )} x^{2} - 6 \, {\left ({\left (4 \, b^{3} d e f - 3 \, b^{3} d^{2} g\right )} n^{3} - 2 \, {\left (2 \, a b^{2} d e f - a b^{2} d^{2} g\right )} n^{2} + {\left (b^{3} e^{2} g n^{3} - 2 \, a b^{2} e^{2} g n^{2}\right )} x^{2} - 2 \, {\left (2 \, a b^{2} e^{2} f n^{2} - {\left (2 \, b^{3} e^{2} f - b^{3} d e g\right )} n^{3}\right )} x - 2 \, {\left (b^{3} e^{2} g n^{2} x^{2} + 2 \, b^{3} e^{2} f n^{2} x + {\left (2 \, b^{3} d e f - b^{3} d^{2} g\right )} n^{2}\right )} \log \relax (c)\right )} \log \left (e x + d\right )^{2} - 6 \, {\left ({\left (b^{3} e^{2} g n - 2 \, a b^{2} e^{2} g\right )} x^{2} - 2 \, {\left (2 \, a b^{2} e^{2} f - {\left (2 \, b^{3} e^{2} f - b^{3} d e g\right )} n\right )} x\right )} \log \relax (c)^{2} + 2 \, {\left (4 \, a^{3} e^{2} f - 3 \, {\left (8 \, b^{3} e^{2} f - 7 \, b^{3} d e g\right )} n^{3} + 6 \, {\left (4 \, a b^{2} e^{2} f - 3 \, a b^{2} d e g\right )} n^{2} - 6 \, {\left (2 \, a^{2} b e^{2} f - a^{2} b d e g\right )} n\right )} x + 6 \, {\left ({\left (8 \, b^{3} d e f - 7 \, b^{3} d^{2} g\right )} n^{3} - 2 \, {\left (4 \, a b^{2} d e f - 3 \, a b^{2} d^{2} g\right )} n^{2} + {\left (b^{3} e^{2} g n^{3} - 2 \, a b^{2} e^{2} g n^{2} + 2 \, a^{2} b e^{2} g n\right )} x^{2} + 2 \, {\left (b^{3} e^{2} g n x^{2} + 2 \, b^{3} e^{2} f n x + {\left (2 \, b^{3} d e f - b^{3} d^{2} g\right )} n\right )} \log \relax (c)^{2} + 2 \, {\left (2 \, a^{2} b d e f - a^{2} b d^{2} g\right )} n + 2 \, {\left (2 \, a^{2} b e^{2} f n + {\left (4 \, b^{3} e^{2} f - 3 \, b^{3} d e g\right )} n^{3} - 2 \, {\left (2 \, a b^{2} e^{2} f - a b^{2} d e g\right )} n^{2}\right )} x - 2 \, {\left ({\left (4 \, b^{3} d e f - 3 \, b^{3} d^{2} g\right )} n^{2} + {\left (b^{3} e^{2} g n^{2} - 2 \, a b^{2} e^{2} g n\right )} x^{2} - 2 \, {\left (2 \, a b^{2} d e f - a b^{2} d^{2} g\right )} n - 2 \, {\left (2 \, a b^{2} e^{2} f n - {\left (2 \, b^{3} e^{2} f - b^{3} d e g\right )} n^{2}\right )} x\right )} \log \relax (c)\right )} \log \left (e x + d\right ) + 6 \, {\left ({\left (b^{3} e^{2} g n^{2} - 2 \, a b^{2} e^{2} g n + 2 \, a^{2} b e^{2} g\right )} x^{2} + 2 \, {\left (2 \, a^{2} b e^{2} f + {\left (4 \, b^{3} e^{2} f - 3 \, b^{3} d e g\right )} n^{2} - 2 \, {\left (2 \, a b^{2} e^{2} f - a b^{2} d e g\right )} n\right )} x\right )} \log \relax (c)}{8 \, e^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.31, size = 1351, normalized size = 5.10 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 1.36, size = 11547, normalized size = 43.57 \[ \text {output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.28, size = 662, normalized size = 2.50 \[ \frac {1}{2} \, b^{3} g x^{2} \log \left ({\left (e x + d\right )}^{n} c\right )^{3} + \frac {3}{2} \, a b^{2} g x^{2} \log \left ({\left (e x + d\right )}^{n} c\right )^{2} + b^{3} f x \log \left ({\left (e x + d\right )}^{n} c\right )^{3} - 3 \, a^{2} b e f n {\left (\frac {x}{e} - \frac {d \log \left (e x + d\right )}{e^{2}}\right )} - \frac {3}{4} \, a^{2} b e g n {\left (\frac {2 \, d^{2} \log \left (e x + d\right )}{e^{3}} + \frac {e x^{2} - 2 \, d x}{e^{2}}\right )} + \frac {3}{2} \, a^{2} b g x^{2} \log \left ({\left (e x + d\right )}^{n} c\right ) + 3 \, a b^{2} f x \log \left ({\left (e x + d\right )}^{n} c\right )^{2} + \frac {1}{2} \, a^{3} g x^{2} + 3 \, a^{2} b f x \log \left ({\left (e x + d\right )}^{n} c\right ) - 3 \, {\left (2 \, e n {\left (\frac {x}{e} - \frac {d \log \left (e x + d\right )}{e^{2}}\right )} \log \left ({\left (e x + d\right )}^{n} c\right ) + \frac {{\left (d \log \left (e x + d\right )^{2} - 2 \, e x + 2 \, d \log \left (e x + d\right )\right )} n^{2}}{e}\right )} a b^{2} f - {\left (3 \, e n {\left (\frac {x}{e} - \frac {d \log \left (e x + d\right )}{e^{2}}\right )} \log \left ({\left (e x + d\right )}^{n} c\right )^{2} - e n {\left (\frac {{\left (d \log \left (e x + d\right )^{3} + 3 \, d \log \left (e x + d\right )^{2} - 6 \, e x + 6 \, d \log \left (e x + d\right )\right )} n^{2}}{e^{2}} - \frac {3 \, {\left (d \log \left (e x + d\right )^{2} - 2 \, e x + 2 \, d \log \left (e x + d\right )\right )} n \log \left ({\left (e x + d\right )}^{n} c\right )}{e^{2}}\right )}\right )} b^{3} f - \frac {3}{4} \, {\left (2 \, e n {\left (\frac {2 \, d^{2} \log \left (e x + d\right )}{e^{3}} + \frac {e x^{2} - 2 \, d x}{e^{2}}\right )} \log \left ({\left (e x + d\right )}^{n} c\right ) - \frac {{\left (e^{2} x^{2} + 2 \, d^{2} \log \left (e x + d\right )^{2} - 6 \, d e x + 6 \, d^{2} \log \left (e x + d\right )\right )} n^{2}}{e^{2}}\right )} a b^{2} g - \frac {1}{8} \, {\left (6 \, e n {\left (\frac {2 \, d^{2} \log \left (e x + d\right )}{e^{3}} + \frac {e x^{2} - 2 \, d x}{e^{2}}\right )} \log \left ({\left (e x + d\right )}^{n} c\right )^{2} + e n {\left (\frac {{\left (4 \, d^{2} \log \left (e x + d\right )^{3} + 3 \, e^{2} x^{2} + 18 \, d^{2} \log \left (e x + d\right )^{2} - 42 \, d e x + 42 \, d^{2} \log \left (e x + d\right )\right )} n^{2}}{e^{3}} - \frac {6 \, {\left (e^{2} x^{2} + 2 \, d^{2} \log \left (e x + d\right )^{2} - 6 \, d e x + 6 \, d^{2} \log \left (e x + d\right )\right )} n \log \left ({\left (e x + d\right )}^{n} c\right )}{e^{3}}\right )}\right )} b^{3} g + a^{3} f x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.57, size = 511, normalized size = 1.93 \[ {\ln \left (c\,{\left (d+e\,x\right )}^n\right )}^3\,\left (\frac {b^3\,g\,x^2}{2}-\frac {d\,\left (b^3\,d\,g-2\,b^3\,e\,f\right )}{2\,e^2}+b^3\,f\,x\right )+\ln \left (c\,{\left (d+e\,x\right )}^n\right )\,\left (\frac {x\,\left (\frac {12\,a^2\,b\,d\,g+12\,a^2\,b\,e\,f-12\,b^3\,d\,g\,n^2+24\,b^3\,e\,f\,n^2-24\,a\,b^2\,e\,f\,n}{2\,e}-\frac {3\,b\,d\,g\,\left (2\,a^2-2\,a\,b\,n+b^2\,n^2\right )}{e}\right )}{2}+\frac {3\,b\,g\,x^2\,\left (2\,a^2-2\,a\,b\,n+b^2\,n^2\right )}{4}\right )+{\ln \left (c\,{\left (d+e\,x\right )}^n\right )}^2\,\left (\frac {x\,\left (\frac {6\,b^2\,\left (a\,d\,g+a\,e\,f-b\,e\,f\,n\right )}{e}-\frac {3\,b^2\,d\,g\,\left (2\,a-b\,n\right )}{e}\right )}{2}-\frac {3\,d\,\left (2\,a\,b^2\,d\,g-4\,a\,b^2\,e\,f-3\,b^3\,d\,g\,n+4\,b^3\,e\,f\,n\right )}{4\,e^2}+\frac {3\,b^2\,g\,x^2\,\left (2\,a-b\,n\right )}{4}\right )+x\,\left (\frac {4\,a^3\,d\,g+4\,a^3\,e\,f+18\,b^3\,d\,g\,n^3-24\,b^3\,e\,f\,n^3-12\,a\,b^2\,d\,g\,n^2+24\,a\,b^2\,e\,f\,n^2-12\,a^2\,b\,e\,f\,n}{4\,e}-\frac {d\,g\,\left (4\,a^3-6\,a^2\,b\,n+6\,a\,b^2\,n^2-3\,b^3\,n^3\right )}{4\,e}\right )+\frac {g\,x^2\,\left (4\,a^3-6\,a^2\,b\,n+6\,a\,b^2\,n^2-3\,b^3\,n^3\right )}{8}-\frac {\ln \left (d+e\,x\right )\,\left (6\,g\,a^2\,b\,d^2\,n-12\,e\,f\,a^2\,b\,d\,n-18\,g\,a\,b^2\,d^2\,n^2+24\,e\,f\,a\,b^2\,d\,n^2+21\,g\,b^3\,d^2\,n^3-24\,e\,f\,b^3\,d\,n^3\right )}{4\,e^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 10.38, size = 1479, normalized size = 5.58 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________